package com.gx.wisestone.android.grpc.interceptor.uaa;


import com.blankj.utilcode.util.AppUtils;
import com.blankj.utilcode.util.SPUtils;
import com.gx.smart.common.util.AppConfig;
import com.gx.smart.lib.http.api.config.ApiConfig;

public class UAAProvider implements UAAClientCall.Provider {

    @Override
    public String token() {
        String token = SPUtils.getInstance().getString(AppConfig.LOGIN_TOKEN, "");
        return token;
    }

    @Override
    public Integer sysTenantNo() {
        int currentSysTenantNo = SPUtils.getInstance().getInt(AppConfig.SYS_TENANT_NO, 0);
        return currentSysTenantNo;
    }

    @Override
    public String wsVer() {
        return ApiConfig.wsVer;
    }

    public String appVersion() {
        return AppUtils.getAppVersionName();
    }
}
